package com.leap.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Builder
@TableName("account_category")
@Schema(description = "用户浏览分类次数统计")
public class AccountCategoryView {

    @TableId(type = IdType.AUTO)
    @Schema(description = "用户Id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long accountId;

    @Schema(description = "分类Id")
    private int categoryId;

    @Schema(description = "浏览次数")
    private int viewCount;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
